<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
<head profile="http://gmpg.org/xfn/11">
<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
<title>
<?php if ( is_home() ) { ?>
<?php bloginfo('description'); ?>
&nbsp;|&nbsp;
<? bloginfo('name'); ?>
<?php } ?>
<?php if ( is_search() ) { ?>
Результаты поиска&nbsp;|&nbsp;
<? bloginfo('name'); ?>
<?php } ?>
<?php if ( is_single() ) { ?>
<?php wp_title(''); ?>
&nbsp;|&nbsp;
<? bloginfo('name'); ?>
<?php } ?>
<?php if ( is_page() ) { ?>
<?php wp_title(''); ?>
&nbsp;|&nbsp;
<? bloginfo('name'); ?>
<?php } ?>
<?php if ( is_category() ) { ?>
<?php single_cat_title(); ?>
&nbsp;|&nbsp;
<? bloginfo('name'); ?>
<?php } ?>
<?php if ( is_month() ) { ?>
Записи <?php the_time('F '); ?>
&nbsp;|&nbsp;
<? bloginfo('name'); ?>
<?php } ?>
<?php if (function_exists('is_tag')) { if ( is_tag() ) { ?>
<? bloginfo('name'); ?>
&nbsp;|&nbsp;Записи с меткой &nbsp;|&nbsp;
<?php  single_tag_title("", true); } } ?>
</title>
<link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>"/>
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>"/>
<link rel="pingback" href="<?php bloginfo('template_url'); ?>/xmlrpc.php" />
<?php 
global $options;
foreach ($options as $value) {
if (get_settings( $value['id'] ) === FALSE) { $$value['id'] = $value['std']; } else { $$value['id'] = get_settings( $value['id'] ); } }
      ?>

<link rel="stylesheet" href="<?php bloginfo('stylesheet_directory'); ?>/<?php echo $kon_color; ?>style.css" type="text/css" media="screen" />
<?php wp_get_archives('type=monthly&format=link'); ?>
<script src="<?php bloginfo('stylesheet_directory'); ?>/js/jquery-1.3.1.min.js" type="text/javascript"></script>
<script src="<?php bloginfo('stylesheet_directory'); ?>/js2/slider.js" type="text/javascript"></script>

		<script type="text/javascript">
			$(document).ready(function(){
				//To switch directions up/down and left/right just place a "-" in front of the top/left attribute
				//Vertical Sliding
				$('.boxgrid.slidedown').hover(function(){
					$(".cover", this).stop().animate({top:'-210px'},{queue:false,duration:300});
				}, function() {
					$(".cover", this).stop().animate({top:'0px'},{queue:false,duration:300});
				});
			});
		</script>
		
<?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?>

<?php wp_head(); ?>
</head>
<body>

<div id="wrap">
<div id="header">
<div class="logo">
<a href="<?php echo get_settings('home'); ?>/"><img style="float:left; margin:0px;" src="<?php bloginfo('template_directory'); ?>/images/logo.png"  border="0"></a>
</div>
</div>



<div id="nav">
<div id="n-left">
<ul id="pages">
<li><a href="<?php bloginfo('rss2_url'); ?>" title="Подпишись на RSS"><span class="rss">RSS</span></a> </li>
	<?php if (is_home()) { ?>
            <li class="current_page_item"><a href="<?php echo get_settings('home'); ?>">Главная</a></li>
             <?php } else { ?>
            <li><a href="<?php echo get_option('home'); ?>">Главная</a></li>
        <?php } ?>    
<?php wp_list_pages("title_li=&depth=3&sort_column=ID"); ?>
 
</ul>
</div>

</div>
<div style="clear:both;"></div>     	
